export default {
    methods: {
        putExcel (url) { // excel下载
        if (this.flag) {
            this.flag = false;
            let option = {
                pageNum:this.currentPage,
                pageSize:this.pageSize,
                param: {
                    ...this.formInline
                }       
            }
            this.$axios.post(this.putExcelUrl, option).then(res => {
                this.flag = true;
                if (res.code == 200) {
                    let title = res.data.titles;
                    let fields = res.data.fields;
                    let data = res.data.data;
                    let filename=res.data.fileName;
                    this.$export2Excel(title,fields,data,filename);
                }
            })
        }
      }
    }
  }